home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
red_cross_eru.swf
/
scripts
/
__Packages
/
gamebase
/
control
/
MMSitRepUnits.as
< prev
next >
Wrap
Text File
|
2011-09-19
|
11KB
|
246 lines
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!e.f)
{
e.f = new g();
}
§§pop();
if(!e.f.h)
{
e.f.h = new g();
}
§§pop();
if(!e.f.h[§§constant(4)])
{
f.h[§§constant(4)] extends f[§§constant(6)];
var _loc2_ = f.h[§§constant(4)] = function()
{
super();
this[§§constant(5)]();
}[§§constant(7)];
_loc2_[§§constant(5)] = function()
{
this[§§constant(8)] = [{§\§\§constant(9)§:§§constant(20),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(21)]},{§\§\§constant(9)§:§§constant(18),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(19)]},{§\§\§constant(9)§:§§constant(16),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(17)]},{§\§\§constant(9)§:§§constant(14),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(15)]},{§\§\§constant(9)§:§§constant(10),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(13)]}];
this[§§constant(22)] = [{§\§\§constant(9)§:§§constant(35),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(36)]},{§\§\§constant(9)§:§§constant(33),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(34)]},{§\§\§constant(9)§:§§constant(31),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(32)]},{§\§\§constant(9)§:§§constant(29),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(30)]},{§\§\§constant(9)§:§§constant(27),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(28)]},{§\§\§constant(9)§:§§constant(25),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(26)]},{§\§\§constant(9)§:§§constant(23),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(24)]}];
this[§§constant(37)] = [{§\§\§constant(9)§:§§constant(40),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(41)]},{§\§\§constant(9)§:§§constant(38),§\§\§constant(11)§:0,§\§\§constant(12)§:_global[§§constant(39)]}];
var _loc6_ = _global[§§constant(42)][§§constant(43)][§§constant(44)]();
var _loc3_ = 0;
while(_loc3_ < this[§§constant(8)][§§constant(45)])
{
var _loc4_ = this[§§constant(8)][_loc3_];
var _loc5_ = this[§§constant(46)](_loc4_[§§constant(9)],_loc6_);
if(_loc5_ != undefined)
{
_loc4_[§§constant(11)] = _loc5_[§§constant(11)];
}
_loc3_ = _loc3_ + 1;
}
var _loc7_ = _global[§§constant(42)][§§constant(47)][§§constant(44)]();
_loc3_ = 0;
while(_loc3_ < this[§§constant(22)][§§constant(45)])
{
_loc4_ = this[§§constant(22)][_loc3_];
_loc5_ = this[§§constant(46)](_loc4_[§§constant(9)],_loc7_);
if(_loc5_ != undefined)
{
_loc4_[§§constant(11)] = _loc5_[§§constant(11)];
}
_loc3_ = _loc3_ + 1;
}
var _loc8_ = _global[§§constant(42)][§§constant(48)][§§constant(44)]();
_loc3_ = 0;
while(_loc3_ < this[§§constant(37)][§§constant(45)])
{
_loc4_ = this[§§constant(37)][_loc3_];
_loc5_ = this[§§constant(46)](_loc4_[§§constant(9)],_loc8_);
if(_loc5_ != undefined)
{
_loc4_[§§constant(11)] = _loc5_[§§constant(11)];
}
_loc3_ = _loc3_ + 1;
}
this[§§constant(49)][§§constant(50)][§§constant(51)] = _global[§§constant(52)];
this[§§constant(49)][§§constant(53)][§§constant(51)] = _global[§§constant(54)];
var _loc9_ = eval(§§constant(56))[§§constant(57)](_global[§§constant(42)][§§constant(55)] / 15000);
var _loc10_ = eval(§§constant(56))[§§constant(57)](_loc9_ / 24);
_loc9_ -= _loc10_ * 24;
var _loc11_ = eval(§§constant(56))[§§constant(57)](_loc10_ / 10);
var _loc13_ = _loc10_ - _loc11_ * 10;
var _loc12_ = eval(§§constant(56))[§§constant(57)](_loc9_ / 10);
var _loc14_ = _loc9_ - _loc12_ * 10;
this[§§constant(49)][§§constant(58)][§§constant(51)] = _loc11_;
this[§§constant(49)][§§constant(59)][§§constant(51)] = _loc13_;
this[§§constant(49)][§§constant(60)][§§constant(51)] = _loc12_;
this[§§constant(49)][§§constant(61)][§§constant(51)] = _loc14_;
this[§§constant(62)]();
};
_loc2_[§§constant(63)] = function(mc)
{
mc[§§constant(64)] = true;
};
_loc2_[§§constant(62)] = function()
{
var _loc11_ = undefined;
var _loc12_ = undefined;
var _loc10_ = this[§§constant(8)][§§constant(45)];
var _loc9_ = 0;
while(_loc9_ < _loc10_)
{
var _loc6_ = this[§§constant(8)][_loc9_];
var _loc4_ = this[_loc6_[§§constant(9)] + §§constant(65)];
_loc4_[§§constant(66)] = 30;
_loc4_[§§constant(67)][§§constant(68)](_loc6_[§§constant(9)]);
_loc4_[§§constant(67)][§§constant(69)][§§constant(64)] = false;
if(_loc6_[§§constant(11)] > 1)
{
_loc4_[§§constant(67)][§§constant(69)][§§constant(64)] = true;
_loc4_[§§constant(67)][§§constant(69)][§§constant(70)][§§constant(51)] = _loc6_[§§constant(11)];
}
if(_loc6_[§§constant(11)] == 0)
{
_loc4_[§§constant(71)][§§constant(72)] = _global[§§constant(73)];
}
else
{
_loc4_[§§constant(71)][§§constant(72)] = _loc6_[§§constant(12)];
}
_loc11_ = _loc9_ * 100;
f[§§constant(74)][§§constant(75)][§§constant(76)](this,this[§§constant(63)],_loc9_ * 100,_loc4_);
_loc9_ = _loc9_ + 1;
}
_loc10_ = this[§§constant(22)][§§constant(45)];
_loc9_ = 0;
while(_loc9_ < _loc10_)
{
var _loc7_ = this[§§constant(22)][_loc9_];
var _loc3_ = this[_loc7_[§§constant(9)] + §§constant(65)];
_loc3_[§§constant(66)] = 30;
_loc3_[§§constant(67)][§§constant(68)](_loc7_[§§constant(9)]);
_loc3_[§§constant(67)][§§constant(69)][§§constant(64)] = false;
if(_loc7_[§§constant(11)] > 1)
{
_loc3_[§§constant(67)][§§constant(69)][§§constant(64)] = true;
_loc3_[§§constant(67)][§§constant(69)][§§constant(70)][§§constant(51)] = _loc7_[§§constant(11)];
}
if(_loc7_[§§constant(11)] == 0)
{
_loc3_[§§constant(71)][§§constant(72)] = _global[§§constant(73)];
}
else
{
_loc3_[§§constant(71)][§§constant(72)] = _loc7_[§§constant(12)];
}
_loc12_ = _loc11_ + _loc9_ * 100;
f[§§constant(74)][§§constant(75)][§§constant(76)](this,this[§§constant(63)],_loc11_ + _loc9_ * 100,_loc3_);
_loc9_ = _loc9_ + 1;
}
_loc10_ = this[§§constant(37)][§§constant(45)];
_loc9_ = 0;
while(_loc9_ < _loc10_)
{
var _loc8_ = this[§§constant(37)][_loc9_];
var _loc5_ = this[_loc8_[§§constant(9)] + §§constant(65)];
_loc5_[§§constant(66)] = 30;
_loc5_[§§constant(67)][§§constant(68)](_loc8_[§§constant(9)]);
_loc5_[§§constant(67)][§§constant(69)][§§constant(64)] = false;
if(_loc8_[§§constant(11)] > 1)
{
_loc5_[§§constant(67)][§§constant(69)][§§constant(64)] = true;
_loc5_[§§constant(67)][§§constant(69)][§§constant(70)][§§constant(51)] = _loc8_[§§constant(11)];
}
_loc5_[§§constant(71)][§§constant(72)] = _loc8_[§§constant(12)];
f[§§constant(74)][§§constant(75)][§§constant(76)](this,this[§§constant(63)],_loc12_ + _loc9_ * 100,_loc5_);
_loc9_ = _loc9_ + 1;
}
this[§§constant(77)] = f[§§constant(74)][§§constant(75)][§§constant(79)](this,this[§§constant(78)]);
};
_loc2_[§§constant(78)] = function()
{
var _loc7_ = true;
var _loc6_ = this[§§constant(8)][§§constant(45)];
var _loc2_ = 0;
while(_loc2_ < _loc6_)
{
var _loc4_ = this[this[§§constant(8)][_loc2_][§§constant(9)] + §§constant(65)];
var _loc8_ = this[§§constant(8)][_loc2_][§§constant(11)] <= 0 ? 30 : 100;
if(_loc4_[§§constant(64)])
{
if(_loc4_[§§constant(66)] < _loc8_)
{
_loc7_ = false;
_loc4_[§§constant(66)] += 5;
}
}
_loc2_ = _loc2_ + 1;
}
_loc6_ = this[§§constant(22)][§§constant(45)];
_loc2_ = 0;
while(_loc2_ < _loc6_)
{
var _loc3_ = this[this[§§constant(22)][_loc2_][§§constant(9)] + §§constant(65)];
_loc8_ = this[§§constant(22)][_loc2_][§§constant(11)] <= 0 ? 30 : 100;
if(_loc3_[§§constant(64)])
{
if(_loc3_[§§constant(66)] < _loc8_)
{
_loc7_ = false;
_loc3_[§§constant(66)] += 5;
}
}
_loc2_ = _loc2_ + 1;
}
_loc6_ = this[§§constant(37)][§§constant(45)];
_loc2_ = 0;
while(_loc2_ < _loc6_)
{
var _loc5_ = this[this[§§constant(37)][_loc2_][§§constant(9)] + §§constant(65)];
_loc8_ = this[§§constant(37)][_loc2_][§§constant(11)] <= 0 ? 30 : 100;
if(_loc5_[§§constant(64)])
{
if(_loc5_[§§constant(66)] < _loc8_)
{
_loc7_ = false;
_loc5_[§§constant(66)] += 5;
}
}
_loc2_ = _loc2_ + 1;
}
if(!_loc7_)
{
}
};
_loc2_[§§constant(46)] = function(type, arr)
{
var _loc3_ = arr[§§constant(45)];
var _loc1_ = 0;
while(_loc1_ < _loc3_)
{
var _loc2_ = arr[_loc1_];
if(_loc2_[§§constant(9)] == type)
{
return _loc2_;
}
_loc1_ = _loc1_ + 1;
}
};
§§push(§§constant(80)(f.h[§§constant(4)][§§constant(7)],null,1));
}
§§pop();